package com.eastshop.user.vo;

import java.io.Serializable;
import java.util.Set;

import org.apache.commons.lang3.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class User implements Serializable {

    /** identifier field */
    private Integer uid;

    /** nullable persistent field */
    private String username;

    /** nullable persistent field */
    private String password;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private Integer state;

    /** nullable persistent field */
    private String code;

    /** persistent field */
    private Set addresses;

    /** persistent field */
    private Set orders;

    /** full constructor */
    public User(String username, String password, String email, Integer state, String code, Set addresses, Set orders) {
        this.username = username;
        this.password = password;
        this.email = email;
        this.state = state;
        this.code = code;
        this.addresses = addresses;
        this.orders = orders;
    }

    /** default constructor */
    public User() {
    }

    /** minimal constructor */
    public User(Set addresses, Set orders) {
        this.addresses = addresses;
        this.orders = orders;
    }

    public Integer getUid() {
        return this.uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getState() {
        return this.state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Set getAddresses() {
        return this.addresses;
    }

    public void setAddresses(Set addresses) {
        this.addresses = addresses;
    }

    public Set getOrders() {
        return this.orders;
    }

    public void setOrders(Set orders) {
        this.orders = orders;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("uid", getUid())
            .toString();
    }

}
